package com.atguigu.day10;

public class Test06 {
    public static void main(String[] args) {
        Base1 b = new Sub1();
        System.out.println(b.x);
    }
}
class Base1{
    int x = 1;
}
class Sub1 extends Base1{
    int x = 2;
}